/**
 * jims
 */
package com.jims.master.modules.doctor.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * Entity
 * @author 陈涛
 * @version 2017-03-28
 */
public class PatsInTransferring extends DataEntity<PatsInTransferring> {
	
	private static final long serialVersionUID = 1L;
	private String patientId;		// 病人ID
	private String visitId;		// visit_id
	private String deptTransferOut;		// 转出科室
	private String deptTransferTo;		// 转向科室
	private Date transferDate;		// 转出日期及时间

	public PatsInTransferring() {
		super();
	}

	public PatsInTransferring(String id){
		super(id);
	}

	@Length(min=1, max=64, message="病人ID长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=64, message="visit_id长度必须介于 1 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@Length(min=0, max=64, message="转出科室长度必须介于 0 和 64 之间")
	public String getDeptTransferOut() {
		return deptTransferOut;
	}

	public void setDeptTransferOut(String deptTransferOut) {
		this.deptTransferOut = deptTransferOut;
	}
	
	@Length(min=0, max=64, message="转向科室长度必须介于 0 和 64 之间")
	public String getDeptTransferTo() {
		return deptTransferTo;
	}

	public void setDeptTransferTo(String deptTransferTo) {
		this.deptTransferTo = deptTransferTo;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getTransferDate() {
		return transferDate;
	}

	public void setTransferDate(Date transferDate) {
		this.transferDate = transferDate;
	}

	
}